const { trainModel, lessonModel,AdminModel ,equipmentModel} = require("./models");

//教练
// let jiaolian = require("./mock/trainMock.js");
// 教练导入数据库
// async function userAdd() {
//   try {
//     let result = await trainModel.insertMany(jiaolian);
//     console.log(result);
//   } catch (e) {
//     console.log(e);
//   }
// }
// userAdd();

//课程
let lesson = require("./mock/lessonMock.js");
async function lessonAdd() {
  try {
    let resp = await lessonModel.insertMany(lesson);
    console.log(resp);
  } catch (e) {
    console.log(e);
  }
}
lessonAdd();

//管理员
// let admin = require('./mock/adminMock.js');
// async function adminAdd() {
//   try {
//     let resp = await AdminModel.insertMany(admin)
//     console.log(resp);
//   }
//   catch (e) {
//    console.log(e);
//    }
// }
// adminAdd()

// 器材
// let equipment = require('./mock/equipmentMock.js');
// async function equipmentAdd() {
//   try {
//     let resp = await equipmentModel.insertMany(equipment)
//     console.log(resp);
//   }
//   catch (e) {
//    console.log(e);
//    }
// }
// equipmentAdd()
// let equipment = require('./mock/equipmentMock.js');
// async function equipmentAdd() {
//   try {
//     let resp = await equipmentModel.insertMany(equipment)
//     console.log(resp);
//   }
//   catch (e) {
//    console.log(e);
//    }
// }
// equipmentAdd()
